﻿window.onload = function()
{
    var groupNameTextBox =  document.getElementById("groupName");
    var submitButton = document.getElementById("submit");
    var notificationDiv = document.getElementById("notification");
    submitButton.onclick = function()
    {
        if (groupNameTextBox.value.trim() == "")
        {
            notificationDiv.innerHTML = "请输入小组名称";
            return false;
        }
    };
}